package com.csun.cmny.provider.model.dto;

import com.csun.cmny.provider.validator.WelfareIntroduceSaveValidator;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class WelfareIntroduceDto implements Serializable {

    private static final long serialVersionUID = 5231188474478504716L;

    /**
     * 介绍内容
     */
    private String introduce;

    /**
     * 介绍类型: 1-总介绍 2-历史介绍 3-人员介绍 4-入院流程介绍
     */
    @NotNull(message = "{queryMachine.introduceType.empty}",groups = {WelfareIntroduceSaveValidator.class})
    @Range(min = 0, max = 4, message = "{queryMachine.introduceType.range}",
            groups = {WelfareIntroduceSaveValidator.class})
    private Integer introduceType;

    /**
     * 首图片id
     */
    private String firstPic;

    /**
     * 描述
     */
    private String remark;

}
